Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "name 'visibility' is not defined" error on Bazel 5 #1117

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

jesses-canva
Copy link
Contributor

Fixes this error

(12:06:33) ERROR: Skipping '@build_bazel_rules_swift//examples/xplatform/xctest': error loading package '@build_bazel_rules_swift//examples/xplatform/xctest': at /private/var/tmp/_bazel_jesses/06c990151bb0d0bcaaf7ea85520191a3/external/build_bazel_rules_swift/swift/swift.bzl:55:5: at /private/var/tmp/_bazel_jesses/06c990151bb0d0bcaaf7ea85520191a3/external/build_bazel_rules_swift/swift/swift_compiler_plugin.bzl:51:6: compilation of module 'swift/module_name.bzl' failed

@google-cla
Copy link

google-cla bot commented Sep 21, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@keith keith merged commit 22b7ffa into bazelbuild:master Sep 21, 2023
1 check passed
@jesses-canva jesses-canva deleted the patch-1 branch September 21, 2023 03:56
cgrindel-self-hosted-renovate bot referenced this pull request in cgrindel/rules_swiftformat Oct 19, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [build_bazel_rules_swift](https://togithub.com/bazelbuild/rules_swift)
| http_archive | minor | `1.12.0` -> `1.13.0` |

---

### Release Notes

<details>
<summary>bazelbuild/rules_swift (build_bazel_rules_swift)</summary>

###
[`v1.13.0`](https://togithub.com/bazelbuild/rules_swift/releases/tag/1.13.0)

[Compare
Source](https://togithub.com/bazelbuild/rules_swift/compare/1.12.0...1.13.0)

##### What's Changed

- Fixed "name 'visibility' is not defined" error on Bazel 5 by
[@&#8203;jesses-canva](https://togithub.com/jesses-canva) in
[https://github.com/bazelbuild/rules_swift/pull/1117](https://togithub.com/bazelbuild/rules_swift/pull/1117)
- Limited `--cxxopt='-std=c++14'` to Linux builds by
[@&#8203;thii](https://togithub.com/thii) in
[https://github.com/bazelbuild/rules_swift/pull/1122](https://togithub.com/bazelbuild/rules_swift/pull/1122)
- Add SwiftGRPCInfo provider by
[@&#8203;AttilaTheFun](https://togithub.com/AttilaTheFun) in
[https://github.com/bazelbuild/rules_swift/pull/1121](https://togithub.com/bazelbuild/rules_swift/pull/1121)

This release is compatible with 5.x LTS, 6.x LTS, and bazel 7.x rolling
releases

##### MODULE.bazel Snippet

```bzl
bazel_dep(name = "rules_swift", version = "1.13.0", repo_name = "build_bazel_rules_swift")
```

##### Workspace Snippet

```bzl
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "build_bazel_rules_swift",
    sha256 = "28a66ff5d97500f0304f4e8945d936fe0584e0d5b7a6f83258298007a93190ba",
    url = "https://github.com/bazelbuild/rules_swift/releases/download/1.13.0/rules_swift.1.13.0.tar.gz",
)

load(
    "@&#8203;build_bazel_rules_swift//swift:repositories.bzl",
    "swift_rules_dependencies",
)

swift_rules_dependencies()

load(
    "@&#8203;build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDAuMCIsInVwZGF0ZWRJblZlciI6IjM2LjEwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
renovate bot referenced this pull request in bazel-contrib/rules_bazel_integration_test Oct 20, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [build_bazel_rules_swift](https://togithub.com/bazelbuild/rules_swift)
| http_archive | minor | `1.12.0` -> `1.13.0` |

---

### Release Notes

<details>
<summary>bazelbuild/rules_swift (build_bazel_rules_swift)</summary>

###
[`v1.13.0`](https://togithub.com/bazelbuild/rules_swift/releases/tag/1.13.0)

[Compare
Source](https://togithub.com/bazelbuild/rules_swift/compare/1.12.0...1.13.0)

#### What's Changed

- Fixed "name 'visibility' is not defined" error on Bazel 5 by
[@&#8203;jesses-canva](https://togithub.com/jesses-canva) in
[https://github.com/bazelbuild/rules_swift/pull/1117](https://togithub.com/bazelbuild/rules_swift/pull/1117)
- Limited `--cxxopt='-std=c++14'` to Linux builds by
[@&#8203;thii](https://togithub.com/thii) in
[https://github.com/bazelbuild/rules_swift/pull/1122](https://togithub.com/bazelbuild/rules_swift/pull/1122)
- Add SwiftGRPCInfo provider by
[@&#8203;AttilaTheFun](https://togithub.com/AttilaTheFun) in
[https://github.com/bazelbuild/rules_swift/pull/1121](https://togithub.com/bazelbuild/rules_swift/pull/1121)

This release is compatible with 5.x LTS, 6.x LTS, and bazel 7.x rolling
releases

##### MODULE.bazel Snippet

```bzl
bazel_dep(name = "rules_swift", version = "1.13.0", repo_name = "build_bazel_rules_swift")
```

##### Workspace Snippet

```bzl
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "build_bazel_rules_swift",
    sha256 = "28a66ff5d97500f0304f4e8945d936fe0584e0d5b7a6f83258298007a93190ba",
    url = "https://github.com/bazelbuild/rules_swift/releases/download/1.13.0/rules_swift.1.13.0.tar.gz",
)

load(
    "@&#8203;build_bazel_rules_swift//swift:repositories.bzl",
    "swift_rules_dependencies",
)

swift_rules_dependencies()

load(
    "@&#8203;build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/bazel-contrib/rules_bazel_integration_test).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOS4yIiwidXBkYXRlZEluVmVyIjoiMzcuMTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
cgrindel-self-hosted-renovate bot referenced this pull request in cgrindel/rules_swift_package_manager Oct 20, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [build_bazel_rules_swift](https://togithub.com/bazelbuild/rules_swift)
| http_archive | minor | `1.12.0` -> `1.13.0` |

---

### Release Notes

<details>
<summary>bazelbuild/rules_swift (build_bazel_rules_swift)</summary>

###
[`v1.13.0`](https://togithub.com/bazelbuild/rules_swift/releases/tag/1.13.0)

[Compare
Source](https://togithub.com/bazelbuild/rules_swift/compare/1.12.0...1.13.0)

##### What's Changed

- Fixed "name 'visibility' is not defined" error on Bazel 5 by
[@&#8203;jesses-canva](https://togithub.com/jesses-canva) in
[https://github.com/bazelbuild/rules_swift/pull/1117](https://togithub.com/bazelbuild/rules_swift/pull/1117)
- Limited `--cxxopt='-std=c++14'` to Linux builds by
[@&#8203;thii](https://togithub.com/thii) in
[https://github.com/bazelbuild/rules_swift/pull/1122](https://togithub.com/bazelbuild/rules_swift/pull/1122)
- Add SwiftGRPCInfo provider by
[@&#8203;AttilaTheFun](https://togithub.com/AttilaTheFun) in
[https://github.com/bazelbuild/rules_swift/pull/1121](https://togithub.com/bazelbuild/rules_swift/pull/1121)

This release is compatible with 5.x LTS, 6.x LTS, and bazel 7.x rolling
releases

##### MODULE.bazel Snippet

```bzl
bazel_dep(name = "rules_swift", version = "1.13.0", repo_name = "build_bazel_rules_swift")
```

##### Workspace Snippet

```bzl
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "build_bazel_rules_swift",
    sha256 = "28a66ff5d97500f0304f4e8945d936fe0584e0d5b7a6f83258298007a93190ba",
    url = "https://github.com/bazelbuild/rules_swift/releases/download/1.13.0/rules_swift.1.13.0.tar.gz",
)

load(
    "@&#8203;build_bazel_rules_swift//swift:repositories.bzl",
    "swift_rules_dependencies",
)

swift_rules_dependencies()

load(
    "@&#8203;build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDAuMCIsInVwZGF0ZWRJblZlciI6IjM2LjEwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants